<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Cheetah Software: ControlParameterCollection Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cheetah Software
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="../../classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="../../inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="../../functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('dd/da1/class_control_parameter_collection.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="../../d6/de5/class_control_parameter_collection-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ControlParameterCollection Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../d2/d01/_control_parameters_8h_source.html">ControlParameters.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Collaboration diagram for ControlParameterCollection:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../d2/d0a/class_control_parameter_collection__coll__graph.png" border="0" usemap="#_control_parameter_collection_coll__map" alt="Collaboration graph"/></div>
<map name="_control_parameter_collection_coll__map" id="_control_parameter_collection_coll__map">
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a24fe77f33850b74589802b7884bbd5d6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/da1/class_control_parameter_collection.html#a24fe77f33850b74589802b7884bbd5d6">ControlParameterCollection</a> (const std::string &amp;name)</td></tr>
<tr class="separator:a24fe77f33850b74589802b7884bbd5d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3080ce39e957349dfe87ba7da7d0d8ec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/da1/class_control_parameter_collection.html#a3080ce39e957349dfe87ba7da7d0d8ec">addParameter</a> (<a class="el" href="../../da/d98/class_control_parameter.html">ControlParameter</a> *param, const std::string &amp;name)</td></tr>
<tr class="separator:a3080ce39e957349dfe87ba7da7d0d8ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e6262aa46992ca879b50d70df030a56"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../da/d98/class_control_parameter.html">ControlParameter</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/da1/class_control_parameter_collection.html#a9e6262aa46992ca879b50d70df030a56">lookup</a> (const std::string &amp;name)</td></tr>
<tr class="separator:a9e6262aa46992ca879b50d70df030a56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4963e47c6184ba7433b2affcd5d53b01"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/da1/class_control_parameter_collection.html#a4963e47c6184ba7433b2affcd5d53b01">printToIniString</a> ()</td></tr>
<tr class="memdesc:a4963e47c6184ba7433b2affcd5d53b01"><td class="mdescLeft">&#160;</td><td class="mdescRight">print all control parameters in the INI file format  <a href="#a4963e47c6184ba7433b2affcd5d53b01">More...</a><br /></td></tr>
<tr class="separator:a4963e47c6184ba7433b2affcd5d53b01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae14191de72494a2274fb56b9047fcab6"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/da1/class_control_parameter_collection.html#ae14191de72494a2274fb56b9047fcab6">printToYamlString</a> ()</td></tr>
<tr class="separator:ae14191de72494a2274fb56b9047fcab6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a8b467533b42dd661d659b715383729"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/da1/class_control_parameter_collection.html#a9a8b467533b42dd661d659b715383729">checkIfAllSet</a> ()</td></tr>
<tr class="memdesc:a9a8b467533b42dd661d659b715383729"><td class="mdescLeft">&#160;</td><td class="mdescRight">are all the control parameters initialized?  <a href="#a9a8b467533b42dd661d659b715383729">More...</a><br /></td></tr>
<tr class="separator:a9a8b467533b42dd661d659b715383729"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad53fd1f116f012437c5933d150b630bb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/da1/class_control_parameter_collection.html#ad53fd1f116f012437c5933d150b630bb">clearAllSet</a> ()</td></tr>
<tr class="separator:ad53fd1f116f012437c5933d150b630bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47d611dedd2df7c3c07700c0900ae255"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/da1/class_control_parameter_collection.html#a47d611dedd2df7c3c07700c0900ae255">deleteAll</a> ()</td></tr>
<tr class="separator:a47d611dedd2df7c3c07700c0900ae255"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a10baad903728358f310f523c45e0326c"><td class="memItemLeft" align="right" valign="top">std::map&lt; std::string, <a class="el" href="../../da/d98/class_control_parameter.html">ControlParameter</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">_map</a></td></tr>
<tr class="separator:a10baad903728358f310f523c45e0326c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a84adfeb0b730ce7406010c58337df074"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/da1/class_control_parameter_collection.html#a84adfeb0b730ce7406010c58337df074">_name</a></td></tr>
<tr class="separator:a84adfeb0b730ce7406010c58337df074"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>ControlParameterCollections contains a map of all the control parameters. </p>

<p>Definition at line <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00071">71</a> of file <a class="el" href="../../d2/d01/_control_parameters_8h_source.html">ControlParameters.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a24fe77f33850b74589802b7884bbd5d6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ControlParameterCollection::ControlParameterCollection </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00073">73</a> of file <a class="el" href="../../d2/d01/_control_parameters_8h_source.html">ControlParameters.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;: <a class="code" href="../../dd/da1/class_control_parameter_collection.html#a84adfeb0b730ce7406010c58337df074">_name</a>(name) {}</div><div class="ttc" id="class_control_parameter_collection_html_a84adfeb0b730ce7406010c58337df074"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a84adfeb0b730ce7406010c58337df074">ControlParameterCollection::_name</a></div><div class="ttdeci">std::string _name</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00117">ControlParameters.h:117</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a3080ce39e957349dfe87ba7da7d0d8ec"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void ControlParameterCollection::addParameter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../da/d98/class_control_parameter.html">ControlParameter</a> *&#160;</td>
          <td class="paramname"><em>param</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Use this to add a parameter for the first time in the <a class="el" href="../../d0/d73/class_robot_control_parameters.html">RobotControlParameters</a> or <a class="el" href="../../da/dcf/class_simulator_control_parameters.html">SimulatorControlParameters</a> This should only be used during initialization of a <a class="el" href="../../da/d98/class_control_parameter.html">ControlParameter</a> </p>

<p>Definition at line <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00080">80</a> of file <a class="el" href="../../d2/d01/_control_parameters_8h_source.html">ControlParameters.h</a>.</p>

<p>References <a class="el" href="../../de/df0/utilities_8h_source.html#l00120">mapContains()</a>.</p>
<div class="fragment"><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;                                                                    {</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="../../de/df0/utilities_8h.html#a8ee36d7e1f86b7307f0e0aef157237a7">mapContains</a>(<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">_map</a>, name)) {</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;      printf(</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;          <span class="stringliteral">&quot;[ERROR] ControlParameterCollection %s: tried to add parameter %s &quot;</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;          <span class="stringliteral">&quot;twice!\n&quot;</span>,</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;          <a class="code" href="../../dd/da1/class_control_parameter_collection.html#a84adfeb0b730ce7406010c58337df074">_name</a>.c_str(), name.c_str());</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;      <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">&quot;control parameter error&quot;</span>);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    }</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <a class="code" href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">_map</a>[name] = param;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  }</div><div class="ttc" id="class_control_parameter_collection_html_a10baad903728358f310f523c45e0326c"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">ControlParameterCollection::_map</a></div><div class="ttdeci">std::map&lt; std::string, ControlParameter * &gt; _map</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00114">ControlParameters.h:114</a></div></div>
<div class="ttc" id="class_control_parameter_collection_html_a84adfeb0b730ce7406010c58337df074"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a84adfeb0b730ce7406010c58337df074">ControlParameterCollection::_name</a></div><div class="ttdeci">std::string _name</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00117">ControlParameters.h:117</a></div></div>
<div class="ttc" id="utilities_8h_html_a8ee36d7e1f86b7307f0e0aef157237a7"><div class="ttname"><a href="../../de/df0/utilities_8h.html#a8ee36d7e1f86b7307f0e0aef157237a7">mapContains</a></div><div class="ttdeci">bool mapContains(const std::map&lt; T1, T2 &gt; &amp;set, T1 key)</div><div class="ttdef"><b>Definition:</b> <a href="../../de/df0/utilities_8h_source.html#l00120">utilities.h:120</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dd/da1/class_control_parameter_collection_a3080ce39e957349dfe87ba7da7d0d8ec_cgraph.png" border="0" usemap="#dd/da1/class_control_parameter_collection_a3080ce39e957349dfe87ba7da7d0d8ec_cgraph" alt=""/></div>
<map name="dd/da1/class_control_parameter_collection_a3080ce39e957349dfe87ba7da7d0d8ec_cgraph" id="dd/da1/class_control_parameter_collection_a3080ce39e957349dfe87ba7da7d0d8ec_cgraph">
</map>
</div>
</p>

<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dd/da1/class_control_parameter_collection_a3080ce39e957349dfe87ba7da7d0d8ec_icgraph.png" border="0" usemap="#dd/da1/class_control_parameter_collection_a3080ce39e957349dfe87ba7da7d0d8ec_icgraph" alt=""/></div>
<map name="dd/da1/class_control_parameter_collection_a3080ce39e957349dfe87ba7da7d0d8ec_icgraph" id="dd/da1/class_control_parameter_collection_a3080ce39e957349dfe87ba7da7d0d8ec_icgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a9a8b467533b42dd661d659b715383729"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ControlParameterCollection::checkIfAllSet </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>are all the control parameters initialized? </p>

<p>Definition at line <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00067">67</a> of file <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html">ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00114">_map</a>.</p>
<div class="fragment"><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;                                               {</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; kv : <a class="code" href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">_map</a>) {</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keywordflow">if</span> (!kv.second-&gt;_set) {</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;      <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    }</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  }</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;}</div><div class="ttc" id="class_control_parameter_collection_html_a10baad903728358f310f523c45e0326c"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">ControlParameterCollection::_map</a></div><div class="ttdeci">std::map&lt; std::string, ControlParameter * &gt; _map</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00114">ControlParameters.h:114</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dd/da1/class_control_parameter_collection_a9a8b467533b42dd661d659b715383729_icgraph.png" border="0" usemap="#dd/da1/class_control_parameter_collection_a9a8b467533b42dd661d659b715383729_icgraph" alt=""/></div>
<map name="dd/da1/class_control_parameter_collection_a9a8b467533b42dd661d659b715383729_icgraph" id="dd/da1/class_control_parameter_collection_a9a8b467533b42dd661d659b715383729_icgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad53fd1f116f012437c5933d150b630bb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ControlParameterCollection::clearAllSet </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00076">76</a> of file <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html">ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00114">_map</a>.</p>
<div class="fragment"><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                                             {</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; kv : <a class="code" href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">_map</a>) {</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    kv.second-&gt;_set = <span class="keyword">false</span>;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  }</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div><div class="ttc" id="class_control_parameter_collection_html_a10baad903728358f310f523c45e0326c"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">ControlParameterCollection::_map</a></div><div class="ttdeci">std::map&lt; std::string, ControlParameter * &gt; _map</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00114">ControlParameters.h:114</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-4-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dd/da1/class_control_parameter_collection_ad53fd1f116f012437c5933d150b630bb_icgraph.png" border="0" usemap="#dd/da1/class_control_parameter_collection_ad53fd1f116f012437c5933d150b630bb_icgraph" alt=""/></div>
<map name="dd/da1/class_control_parameter_collection_ad53fd1f116f012437c5933d150b630bb_icgraph" id="dd/da1/class_control_parameter_collection_ad53fd1f116f012437c5933d150b630bb_icgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a47d611dedd2df7c3c07700c0900ae255"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ControlParameterCollection::deleteAll </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00082">82</a> of file <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html">ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00114">_map</a>.</p>
<div class="fragment"><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                                           {</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  <span class="keywordflow">for</span>(<span class="keyword">auto</span>&amp; kv : <a class="code" href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">_map</a>) {</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keyword">delete</span> kv.second;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  }</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  _map.clear();</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;}</div><div class="ttc" id="class_control_parameter_collection_html_a10baad903728358f310f523c45e0326c"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">ControlParameterCollection::_map</a></div><div class="ttdeci">std::map&lt; std::string, ControlParameter * &gt; _map</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00114">ControlParameters.h:114</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-5" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-5-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-5-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-5-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dd/da1/class_control_parameter_collection_a47d611dedd2df7c3c07700c0900ae255_icgraph.png" border="0" usemap="#dd/da1/class_control_parameter_collection_a47d611dedd2df7c3c07700c0900ae255_icgraph" alt=""/></div>
<map name="dd/da1/class_control_parameter_collection_a47d611dedd2df7c3c07700c0900ae255_icgraph" id="dd/da1/class_control_parameter_collection_a47d611dedd2df7c3c07700c0900ae255_icgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a9e6262aa46992ca879b50d70df030a56"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../da/d98/class_control_parameter.html">ControlParameter</a>&amp; ControlParameterCollection::lookup </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Lookup a control parameter by its name. This does not modify the set field of the control parameter! </p>

<p>Definition at line <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00095">95</a> of file <a class="el" href="../../d2/d01/_control_parameters_8h_source.html">ControlParameters.h</a>.</p>

<p>References <a class="el" href="../../de/df0/utilities_8h_source.html#l00120">mapContains()</a>.</p>
<div class="fragment"><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                                                  {</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="../../de/df0/utilities_8h.html#a8ee36d7e1f86b7307f0e0aef157237a7">mapContains</a>(<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">_map</a>, name)) {</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;      <span class="keywordflow">return</span> *<a class="code" href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">_map</a>[name];</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;      <span class="comment">// for now:</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;      <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">&quot;parameter &quot;</span> + name +</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;                               <span class="stringliteral">&quot; wasn&#39;t found in parameter collection &quot;</span> +</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;                               <a class="code" href="../../dd/da1/class_control_parameter_collection.html#a84adfeb0b730ce7406010c58337df074">_name</a>);</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    }</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  }</div><div class="ttc" id="class_control_parameter_collection_html_a10baad903728358f310f523c45e0326c"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">ControlParameterCollection::_map</a></div><div class="ttdeci">std::map&lt; std::string, ControlParameter * &gt; _map</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00114">ControlParameters.h:114</a></div></div>
<div class="ttc" id="class_control_parameter_collection_html_a84adfeb0b730ce7406010c58337df074"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a84adfeb0b730ce7406010c58337df074">ControlParameterCollection::_name</a></div><div class="ttdeci">std::string _name</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00117">ControlParameters.h:117</a></div></div>
<div class="ttc" id="utilities_8h_html_a8ee36d7e1f86b7307f0e0aef157237a7"><div class="ttname"><a href="../../de/df0/utilities_8h.html#a8ee36d7e1f86b7307f0e0aef157237a7">mapContains</a></div><div class="ttdeci">bool mapContains(const std::map&lt; T1, T2 &gt; &amp;set, T1 key)</div><div class="ttdef"><b>Definition:</b> <a href="../../de/df0/utilities_8h_source.html#l00120">utilities.h:120</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-6" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-6-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-6-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-6-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dd/da1/class_control_parameter_collection_a9e6262aa46992ca879b50d70df030a56_cgraph.png" border="0" usemap="#dd/da1/class_control_parameter_collection_a9e6262aa46992ca879b50d70df030a56_cgraph" alt=""/></div>
<map name="dd/da1/class_control_parameter_collection_a9e6262aa46992ca879b50d70df030a56_cgraph" id="dd/da1/class_control_parameter_collection_a9e6262aa46992ca879b50d70df030a56_cgraph">
</map>
</div>
</p>

<p><div id="dynsection-7" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-7-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-7-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-7-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dd/da1/class_control_parameter_collection_a9e6262aa46992ca879b50d70df030a56_icgraph.png" border="0" usemap="#dd/da1/class_control_parameter_collection_a9e6262aa46992ca879b50d70df030a56_icgraph" alt=""/></div>
<map name="dd/da1/class_control_parameter_collection_a9e6262aa46992ca879b50d70df030a56_icgraph" id="dd/da1/class_control_parameter_collection_a9e6262aa46992ca879b50d70df030a56_icgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a4963e47c6184ba7433b2affcd5d53b01"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string ControlParameterCollection::printToIniString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>print all control parameters in the INI file format </p>

<p>Definition at line <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00100">100</a> of file <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html">ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00114">_map</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00117">_name</a>, and <a class="el" href="../../de/da5/utilities_8cpp_source.html#l00018">getCurrentTimeAndDate()</a>.</p>
<div class="fragment"><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                                                       {</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  std::string result = <span class="stringliteral">&quot;;; Generated on &quot;</span> + <a class="code" href="../../de/df0/utilities_8h.html#a287878cb2b4807ea103f0bbea0b896bc">getCurrentTimeAndDate</a>() + <span class="stringliteral">&quot;\n&quot;</span>;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="comment">// ini section</span></div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  result += <span class="stringliteral">&quot;[&quot;</span>;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  result += <a class="code" href="../../dd/da1/class_control_parameter_collection.html#a84adfeb0b730ce7406010c58337df074">_name</a> + <span class="stringliteral">&quot;]\n\n&quot;</span>;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  std::vector&lt;std::string&gt; lines;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  <span class="comment">// names (and max name length)</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  <span class="keywordtype">int</span> maxLength_name = 0;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; kv : <a class="code" href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">_map</a>) {</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    maxLength_name = std::max(maxLength_name, (<span class="keywordtype">int</span>)kv.first.length());</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    lines.push_back(kv.first);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  }</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  <span class="comment">// pad, equals sign, and number</span></div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  <span class="keywordtype">size_t</span> i = 0;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="keywordtype">int</span> maxLength_number = 0;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; kv : _map) {</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordtype">int</span> charsToAdd = maxLength_name - (int)lines[i].length();</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    assert(charsToAdd &gt;= 0);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j &lt; charsToAdd; j++) {</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;      lines[i].push_back(<span class="charliteral">&#39; &#39;</span>);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    }</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    lines[i] += <span class="stringliteral">&quot; = &quot;</span>;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    lines[i] += kv.second-&gt;toString();</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    maxLength_number = std::max(maxLength_number, (<span class="keywordtype">int</span>)lines[i].length());</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    i++;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;  }</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;  <span class="comment">// pad, ;;, and units</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;  i = 0;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; kv : _map) {</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordtype">int</span> charsToAdd = maxLength_number - (int)lines[i].length();</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    assert(charsToAdd &gt;= 0);</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j &lt; charsToAdd; j++) {</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;      lines[i].push_back(<span class="charliteral">&#39; &#39;</span>);</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    }</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    lines[i] += <span class="stringliteral">&quot; ;; &quot;</span>;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordflow">if</span> (kv.second-&gt;_units.empty()) {</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;      lines[i] += <span class="stringliteral">&quot;No units specified.  Add them!&quot;</span>;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;      lines[i] += kv.second-&gt;_units;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    }</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    i++;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;  }</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;  <span class="comment">// combine lines</span></div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; line : lines) {</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    result += line + <span class="stringliteral">&quot;\n&quot;</span>;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;  }</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;}</div><div class="ttc" id="utilities_8h_html_a287878cb2b4807ea103f0bbea0b896bc"><div class="ttname"><a href="../../de/df0/utilities_8h.html#a287878cb2b4807ea103f0bbea0b896bc">getCurrentTimeAndDate</a></div><div class="ttdeci">std::string getCurrentTimeAndDate()</div><div class="ttdef"><b>Definition:</b> <a href="../../de/da5/utilities_8cpp_source.html#l00018">utilities.cpp:18</a></div></div>
<div class="ttc" id="class_control_parameter_collection_html_a10baad903728358f310f523c45e0326c"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">ControlParameterCollection::_map</a></div><div class="ttdeci">std::map&lt; std::string, ControlParameter * &gt; _map</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00114">ControlParameters.h:114</a></div></div>
<div class="ttc" id="class_control_parameter_collection_html_a84adfeb0b730ce7406010c58337df074"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a84adfeb0b730ce7406010c58337df074">ControlParameterCollection::_name</a></div><div class="ttdeci">std::string _name</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00117">ControlParameters.h:117</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-8" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-8-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-8-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-8-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dd/da1/class_control_parameter_collection_a4963e47c6184ba7433b2affcd5d53b01_cgraph.png" border="0" usemap="#dd/da1/class_control_parameter_collection_a4963e47c6184ba7433b2affcd5d53b01_cgraph" alt=""/></div>
<map name="dd/da1/class_control_parameter_collection_a4963e47c6184ba7433b2affcd5d53b01_cgraph" id="dd/da1/class_control_parameter_collection_a4963e47c6184ba7433b2affcd5d53b01_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae14191de72494a2274fb56b9047fcab6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string ControlParameterCollection::printToYamlString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>print all control parameters in the YAML file format </p>

<p>Definition at line <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00157">157</a> of file <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html">ControlParameters.cpp</a>.</p>

<p>References <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00114">_map</a>, <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00117">_name</a>, <a class="el" href="../../de/da5/utilities_8cpp_source.html#l00018">getCurrentTimeAndDate()</a>, and <a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html#l00014">YAML_COLLECTION_NAME_KEY</a>.</p>
<div class="fragment"><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;                                                        {</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;  std::string result = <span class="stringliteral">&quot;# Generated on &quot;</span> + <a class="code" href="../../de/df0/utilities_8h.html#a287878cb2b4807ea103f0bbea0b896bc">getCurrentTimeAndDate</a>() + <span class="stringliteral">&quot;\n&quot;</span>;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;  result += <a class="code" href="../../d5/d90/_control_parameters_8cpp.html#a53f4748d9620c875c3cd48372e3a2258">YAML_COLLECTION_NAME_KEY</a>;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;  result += <span class="stringliteral">&quot;: &quot;</span>;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;  result += <a class="code" href="../../dd/da1/class_control_parameter_collection.html#a84adfeb0b730ce7406010c58337df074">_name</a> + <span class="stringliteral">&quot;\n\n&quot;</span>;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;  std::vector&lt;std::string&gt; lines;</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;  <span class="comment">// names</span></div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;  <span class="keywordtype">int</span> maxLength_name = 0;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; kv : <a class="code" href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">_map</a>) {</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    maxLength_name = std::max(maxLength_name, (<span class="keywordtype">int</span>)kv.first.length());</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    lines.push_back(kv.first);</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;  }</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;  <span class="comment">// name pad, :, and number</span></div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;  <span class="keywordtype">size_t</span> i = 0;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;  <span class="keywordtype">int</span> maxLength_number = 0;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; kv : _map) {</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <span class="keywordtype">int</span> charsToAdd = maxLength_name - (int)lines[i].length();</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    assert(charsToAdd &gt;= 0);</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j = 0; j &lt; charsToAdd; j++) {</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;      lines[i].push_back(<span class="charliteral">&#39; &#39;</span>);</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    }</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    lines[i] += <span class="stringliteral">&quot;: &quot;</span>;</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    lines[i] += kv.second-&gt;toString();</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    maxLength_number = std::max(maxLength_number, (<span class="keywordtype">int</span>)lines[i].length());</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    i++;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;  }</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;  <span class="comment">// combine lines</span></div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; line : lines) {</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    result += line + <span class="stringliteral">&quot;\n&quot;</span>;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;  }</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;}</div><div class="ttc" id="utilities_8h_html_a287878cb2b4807ea103f0bbea0b896bc"><div class="ttname"><a href="../../de/df0/utilities_8h.html#a287878cb2b4807ea103f0bbea0b896bc">getCurrentTimeAndDate</a></div><div class="ttdeci">std::string getCurrentTimeAndDate()</div><div class="ttdef"><b>Definition:</b> <a href="../../de/da5/utilities_8cpp_source.html#l00018">utilities.cpp:18</a></div></div>
<div class="ttc" id="class_control_parameter_collection_html_a10baad903728358f310f523c45e0326c"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a10baad903728358f310f523c45e0326c">ControlParameterCollection::_map</a></div><div class="ttdeci">std::map&lt; std::string, ControlParameter * &gt; _map</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00114">ControlParameters.h:114</a></div></div>
<div class="ttc" id="_control_parameters_8cpp_html_a53f4748d9620c875c3cd48372e3a2258"><div class="ttname"><a href="../../d5/d90/_control_parameters_8cpp.html#a53f4748d9620c875c3cd48372e3a2258">YAML_COLLECTION_NAME_KEY</a></div><div class="ttdeci">#define YAML_COLLECTION_NAME_KEY</div><div class="ttdef"><b>Definition:</b> <a href="../../d5/d90/_control_parameters_8cpp_source.html#l00014">ControlParameters.cpp:14</a></div></div>
<div class="ttc" id="class_control_parameter_collection_html_a84adfeb0b730ce7406010c58337df074"><div class="ttname"><a href="../../dd/da1/class_control_parameter_collection.html#a84adfeb0b730ce7406010c58337df074">ControlParameterCollection::_name</a></div><div class="ttdeci">std::string _name</div><div class="ttdef"><b>Definition:</b> <a href="../../d2/d01/_control_parameters_8h_source.html#l00117">ControlParameters.h:117</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-9" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-9-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-9-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-9-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../dd/da1/class_control_parameter_collection_ae14191de72494a2274fb56b9047fcab6_cgraph.png" border="0" usemap="#dd/da1/class_control_parameter_collection_ae14191de72494a2274fb56b9047fcab6_cgraph" alt=""/></div>
<map name="dd/da1/class_control_parameter_collection_ae14191de72494a2274fb56b9047fcab6_cgraph" id="dd/da1/class_control_parameter_collection_ae14191de72494a2274fb56b9047fcab6_cgraph">
</map>
</div>
</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a10baad903728358f310f523c45e0326c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::map&lt;std::string, <a class="el" href="../../da/d98/class_control_parameter.html">ControlParameter</a>*&gt; ControlParameterCollection::_map</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00114">114</a> of file <a class="el" href="../../d2/d01/_control_parameters_8h_source.html">ControlParameters.h</a>.</p>

</div>
</div>
<a class="anchor" id="a84adfeb0b730ce7406010c58337df074"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string ControlParameterCollection::_name</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../d2/d01/_control_parameters_8h_source.html#l00117">117</a> of file <a class="el" href="../../d2/d01/_control_parameters_8h_source.html">ControlParameters.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="../../d2/d01/_control_parameters_8h_source.html">ControlParameters.h</a></li>
<li><a class="el" href="../../d5/d90/_control_parameters_8cpp_source.html">ControlParameters.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dd/da1/class_control_parameter_collection.html">ControlParameterCollection</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
